package com.alibaba.nacos.naming.pojo;

import com.alibaba.fastjson.JSON;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class LinkMan {
    private String linkphone;

    private String relaman;

    private String context;

    private String createTime;

    public LinkMan() {
        this.createTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
    }

    public LinkMan(String linkphone, String relaman, String context) {
        this.linkphone = linkphone;
        this.relaman = relaman;
        this.context = context;
        this.createTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getLinkphone() {
        return linkphone;
    }

    public void setLinkphone(String linkphone) {
        this.linkphone = linkphone;
    }

    public String getRelaman() {
        return relaman;
    }

    public void setRelaman(String relaman) {
        this.relaman = relaman;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
